package com.spa.infrastructure.enums.dict.massagist;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spa.infrastructure.annotation.SysDictEnumAnnotation;
import com.spa.infrastructure.enums.dict.IBaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
@SysDictEnumAnnotation(key = "massagistTag", desc = "技师标签")
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MassagistTagEnum implements IBaseEnum {

    $10(10, "新人技师",1,0),
    $20(20, "平台优选",2,0),
    $30(30, "金牌技师",3,0);

    private Integer code;
    private String desc;
    private Integer sort;
    private Integer status;

    public static MassagistTagEnum byCode(int code) {
        for (MassagistTagEnum value : values()) {
            if (value.code == code) return value;
        }
        return null;
    }

}
